module AggregationsHelper
    
    def reader_wrapper(aggregation, page, &block)
      content = capture(&block)
      concat('<ul title="' + aggregation.title + '">', block.binding) unless page > 0
      concat(content, block.binding)
      concat("</ul>", block.binding) unless page > 0
    end
    
    def photo_wrapper(aggregation, page, &block)
      content = capture(&block)
      concat('<div class="display-photos" title="photos">', block.binding) unless page > 0
      concat(content, block.binding)
      concat("</div>", block.binding) unless page > 0
    end
    
    
end